package com.hzdl.sbdemo.controller;

import com.hzdl.sbdemo.service.CategoryInfoService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
public class CategoryInfoController {
    @Resource
    private CategoryInfoService categoryInfoService;
    @RequestMapping("cate")
    public String cList(Model model){
        model.addAttribute("cList",categoryInfoService.findAll());
        return "login";

    }
}
